package com.app.dem.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class SystemInfo {
    @Value("${server.port}")
    private String port;
    @Value("${spring.application.name}")
    private String appName;

    @Override
    public String toString() {
        return "SystemInfo{" +
                "port='" + port + '\'' +
                ", appName='" + appName + '\'' +
                '}';
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }
}
